Get Random Quote from BinaryQuote
(19 actions, 18 KB)
0 URL
https://www.brainyquote.com
γβ baseURL
γΒ»
1
16
1 Get Contents of URL
[0 baseURL]
/quote_of_the_day
γΒ»
2 Make HTML from Rich Text
[1 Contents of URL]
γΒ»
3
5
7
3 Match Text
"view quote">[\s\S]*?>\n(.*?)\n
in
[2 HTML from Rich Text]
γΒ»
4 Get Match Group At Index 1 in
[3 Matches]
γβ quotes
γΒ»
11
5 Match Text
"view author">(.*?)<
in
[2 HTML from Rich Text]
γΒ»
6 Get Match Group At Index 1 in
[5 Matches]
γβ authors
γΒ»
13
7 Match Text
<a href="/quotes/(.*?)"
in
[2 HTML from Rich Text]
γΒ»
8 Get Match Group At Index 1 in
[7 Matches]
γβ hrefs
γΒ»
9
15
9 Count Items in
[8 hrefs]
γΒ»
10 Random Number between
1
and
[9 Count]
γΒ»
11
13
15
11 Get
Item At Index
[10 Random Number]
from List
[4 quotes]
γβ quote
γΒ»
12 Make Rich Text from HTML
[11 quote]
γβ quote
γΒ»
17
13 Get
Item At Index
[10 Random Number]
from List
[6 authors]
γβ author
γΒ»
14 Make Rich Text from HTML
[13 author]
γβ author
γΒ»
17
15 Get
Item At Index
[10 Random Number]
from List
[8 hrefs]
γΒ»
16 URL
[0 baseURL]
/quotes/
[15 Item from List]
γΒ»
17 DictionaryγΒ»
{ "quote": "
[12 quote]
", "author": "
[14 author]
", "url": "
[16 URL]
" }
18 Stop and Output
[17 Dictionary]